package com.freewater.cargotracker.domain.model.paint;

import org.springframework.util.Assert;

public class Main {
    public static void main(String[] args) {

        PigmentColor read = new PigmentColor(50, 0, 0);
        PigmentColor yellow = new PigmentColor(0, 50, 0);

        StockPaint paint1 = new StockPaint(1.1, read);
        StockPaint paint2 = new StockPaint(2.3, yellow);

        MixedPaint mixedPaint = new MixedPaint();
        mixedPaint.mixIn(paint1);
        mixedPaint.mixIn(paint2);

        Assert.isTrue(mixedPaint.getVolume() == 3.4, "error");
        System.out.println(mixedPaint.getStockConstituents());
    }
}
